package com.itheima.web;

import com.itheima.service.OrderService;
import com.itheima.support.Result;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Reference
    private OrderService orderService;

    @GetMapping("/selectSetmealPercent")
    public Result selectSetmealPercent(){

        return new Result(
                orderService.selectSetmealPercent());
    }

}
